﻿using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Model;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Text;

namespace Common.DBHelp
{
    public class BloggingContext : DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder.UseMySql("server=localhost;userid=root;pwd=root;port=3306;database=ldjadmin;sslmode=none;");
        }
        public DbSet<Sysuser> Sysuser { get; set; }
        public DbSet<Menu> Menu { get; set; }
        public DbSet<Commodity> Commodity { get; set; }
        public DbSet<Model.Type> Type { get; set; }
    }
}
